Package Com.banksteel.openerp.commons.utils;import Java.text.simpledateformat;import Java.util.Calendar;public Class calendarutils{/** * @description: Gets the current time * @param pattern time format * @return Current time * @author: * @createTime:
PHP returns the start timestamp of the current year, month, and day, And the start timestamp of the next year, month, and day. The current Start Time
1. timestamp of the current year
2. timestamp of the current month
3. Current day Timestamp
4.
These time functions have been released. You don't need to use them! If you have any questions, you can leave a message below. I will reply in time to make friends ~
The Code is as follows:
Copy code
// Get the difference in
The PHP computing time period is the day of the week, the day after the current time and the time difference between the date. These time functions have been released. you don't need to use them! If you have any questions, you can leave a message
Select GETDATE() as 'Current Date', Datename( Year,GetDate()) as 'years', Datename(Month,GetDate()) as 'Month', Datename( Day,GetDate()) as 'Day', Datename(DW,GetDate()) as 'Week', Datename(Week,GetDate()) as 'Week number',
General application Settings This group exists, such as night mode, if you. From 8:00-23:00. At this current time is how to infer the period. The main difficulty is how to use NSDate to generate 8:00 time and 23:00 hours. Then use the current time,
In ios, NSDateComponents, NSDate, and NSCalendar are used to determine whether the current time is within a certain period of one day ., Nscalendarnsdate
In the application, this setting usually exists. For example, if you do not disturb at night,
These time functions are put out, the use of the method needless to say! What do not understand the place can be in the following message, I will promptly reply to, make a friend ~
The code is as follows
Copy Code
Select GETDATE ()Select CONVERT (varchar), DATEADD (Month,-1,getdate ()), 120)Select CONVERT (varchar), DATEADD (Dd,1,getdate ()), 120)The results are as follows:Disclaimer: The above text is "Wuhan Han Code Technology Co., Ltd." original,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.